package pkg

import (
	"crypto/md5"
	"fmt"
)

func MD5(password string) (password_md5 string) {
	data := []byte(password)
	has := md5.Sum(data)
	password_md5 = fmt.Sprintf("%x", has) //将[]byte转成16进制
	fmt.Println(password_md5)
	return password_md5
}
